package com.zretc.points.dao;

import com.zretc.api.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface pointsMapper {

    boolean addpoints(@Param("userId") Integer userId,@Param("points") Integer points);

    int getActionPoints(int actionId);


    void addChangeMes(@Param("userId") Integer userId,@Param("username") String username,@Param("before") Integer beforepoints,
                      @Param("after") Integer afterpoints,@Param("points")Integer points,@Param("reason")String reason);

    SysUser getUserpoints(Integer userId);
}
